/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.iprojectmanager.businessclass;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.iprojectmanager.managers.*;
import com.iprojectmanager.entities.*;
import java.util.Enumeration;
import java.util.List;

/**
 *
 * @author Enrique
 */
public class DeveloperControl extends HttpServlet{

    @Override
    public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException{
        String operation = request.getParameter("operacionesintegrante");
        String usuario = (String)request.getAttribute("usuario");
        RequestDispatcher disp;
        if(operation.compareToIgnoreCase("Enviar Avance")==0){
            disp = request.getRequestDispatcher("VistaEnviarAvance");
            disp.forward(request, response);
        }else if(operation.compareToIgnoreCase("Listar Actividades")==0){
            disp = request.getRequestDispatcher("VistaListaActividades");
            disp.forward(request, response);
        }else if(operation.compareToIgnoreCase("Evaluar Material")==0){
            System.out.println("usuarioD:"+usuario);
            request.setAttribute("usuario", usuario);            
            disp = request.getRequestDispatcher("VistaEvaluarMaterial");
            disp.forward(request, response);
        }else
        {
            disp = request.getRequestDispatcher("inicio");
            disp.forward(request, response);
        }
    }
}
